package cn.tedu.mintmall.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "修改地址DTO")
public class AddressUpdateDTO implements Serializable {

    @NotNull(message = "修改地址失败, 请提交用户编号")
    @ApiModelProperty(name = "contactName", value = "联系人",required = true, dataType = "string")
    private String contactName;       // 联系人
    @NotNull(message = "修改地址失败, 请提交手机号码")
    @ApiModelProperty(name = "mobilePhone", value = "手机号码", dataType = "string")
    private String mobilePhone;       // 手机号码
    @NotNull(message = "修改地址失败, 请提交省名")
    @ApiModelProperty(name = "provinceName", value = "省名", dataType = "string")
    private String provinceName;      // 省名
    @NotNull(message = "修改地址失败, 请提交城市名")
    @ApiModelProperty(name = "cityName", value = "城市名", dataType = "string")
    private String cityName;          // 城市名
    @NotNull(message = "修改地址失败, 请提交县区名")
    @ApiModelProperty(name = "districtName", value = "县区名",dataType = "string")
    private String districtName;      // 县区名
    @NotNull(message = "修改地址失败, 请提交街道名")
    @ApiModelProperty(name = "streetName", value = "街道名", dataType = "string")
    private String streetName;        // 街道名
    @NotNull(message = "修改地址失败, 请提交详细地址")
    @ApiModelProperty(name = "detailAddress", value = "详细地址", dataType = "string")
    private String detailAddress;     // 详细地址
    @NotNull(message = "修改地址失败, 请提交公司名")
    @ApiModelProperty(name = "tag", value = "公司名", dataType = "string")
    private String tag;               // 公司名


}
